package com.gxa.customer.controller;

import com.gxa.common.commons.R;
import com.gxa.customer.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/customer/province")
public class ProvinceController {

    @Autowired
    private ProvinceService provinceService;

    //查询国家对应的地区
    @GetMapping(value = "/selectProvinceByCountry")
    public R selectProvinceByCountry(Long countryId){
        return provinceService.selectProvinceByCountryId(countryId);
    }
}
